/*
 * @Description: 
 * @Author: zhihong deng
 * @Date: 2021-05-22 00:02:38
 * @LastEditors: zhihong deng
 * @LastEditTime: 2021-07-07 00:48:18
 */
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import SocketService from './utils/socket_service'
// 对服务端websocket的连接
SocketService.Instance.connect()
// 其他的组件 this.$socket
Vue.prototype.$socket = SocketService.Instance
// 引入全局样式
import './assets/css/global.less'
// 引入字体文件
import './assets/font/iconfont.css'
axios.defaults.baseURL = 'http://127.0.0.1:3000/api/'
Vue.prototype.$http = axios//在别的组件中 this.$http调用

// 将全局的echarts对象挂载到vue的原型对象上
Vue.prototype.$echarts = window.echarts//在别的组件中 this.$echarts 调用

Vue.config.productionTip = false



new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
